﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace WindowsGame7
{
    class Menu : SceneBase
    {
        Texture2D fundo;
        GameWindow window;

        public override void start()
        {
            this.window = Game1.self.Window;
            fundo = Game1.self.Content.Load<Texture2D>("Menu");
        }
        public override void update(GameTime gameTime)
        {
            KeyboardState teclado = teclado = Keyboard.GetState();

            if (teclado.IsKeyDown(Keys.Enter))
            {
                SceneManager.setScene(new Level1());
            }



        }
        public override void draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(fundo, new Rectangle(0, 0, window.ClientBounds.Width, window.ClientBounds.Height), Color.White);
        }
        public override void terminate()
        {
            
        }

    }
}
